package com.hljx.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hljx.dto.DateDTO;
import com.hljx.entity.EtlItemImport;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * <p>
 * 数据抽取初步计算表 服务类
 * </p>
 *
 * @author ${author}
 * @since 2023-11-30
 */
public interface EtlItemImportService extends IService<EtlItemImport> {

    void export( HttpServletResponse response) throws ClassNotFoundException;

    /**
     * 文件导入
     *
     * @param file     文件
     * @param response 返回信息
     * @throws ClassNotFoundException 实体类未找到
     */
    void importExcel(MultipartFile file, HttpServletResponse response) throws ClassNotFoundException, IOException;


   IPage<EtlItemImport> pageByPeriod(DateDTO dateDTO);
}
